import Foundation

protocol ComponentsUseCase {
    func fetchComponents() async throws -> [HomeComponent]
}

class ComponentsUseCaseImp: ComponentsUseCase {
    @Inject private var repository: RepositoryProtocl
    
    func fetchComponents() async throws -> [HomeComponent] {
        return try await repository.fetchComponents()
    }
}
